﻿using GalaSoft.MvvmLight;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KPI.UIBase
{
    public class IntStringData : ViewModelBase
    {
        private int _Key;
        public int Key { get => _Key; set => Set("Key", ref _Key, value); }

        private string _Value;
        public string Value { get => _Value; set => Set("Value", ref _Value, value); }

        public static IntStringData GetAll()
        {
            return new IntStringData() { Key = -1, Value = "全部" };
        }

        public static IntStringData New(int key, string value)
        {
            return new IntStringData() { Key = key, Value = value };
        }
    }
}
